package com.yanqu.road.entity.activity.shuihu;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.player.UserBaseInfo;

@FieldTypeAnnotation(tableName = "t_c_activity_shuihu_notice")
public class ShuiHuNotice extends DataObject {

    @FieldTypeAnnotation(desc = "活动ID", select = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "第几轮")
    private int roundNo;
    @FieldTypeAnnotation(desc = "用户ID")
    private long userId;
    @FieldTypeAnnotation(desc = "用户信息")
    private UserBaseInfo userBaseInfo;
    @FieldTypeAnnotation(desc = "卡片ID")
    private int cardId;
    @FieldTypeAnnotation(desc = "时间")
    private long createTime;

    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setUpdateOption();
        }
    }

    public void setRoundNo(int roundNo) {
        if (this.roundNo != roundNo) {
            this.roundNo = roundNo;
            setUpdateOption();
        }
    }

    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public void setUserBaseInfo(UserBaseInfo userBaseInfo) {
        this.userBaseInfo = userBaseInfo;
        setUpdateOption();
    }

    public void setCardId(int cardId) {
        if (this.cardId != cardId) {
            this.cardId = cardId;
            setUpdateOption();
        }
    }

    public void setCreateTime(long createTime) {
        if (this.createTime != createTime) {
            this.createTime = createTime;
            setUpdateOption();
        }
    }

    public int getActivityId() {
        return activityId;
    }

    public int getRoundNo() {
        return roundNo;
    }

    public long getUserId() {
        return userId;
    }

    public UserBaseInfo getUserBaseInfo() {
        return userBaseInfo;
    }

    public int getCardId() {
        return cardId;
    }

    public long getCreateTime() {
        return createTime;
    }
}
